x86/pt: add HVM check to XEN_DOMCTL_unbind_pt_irq
authorWei Liu <wei.liu2@citrix.com>
Fri, 17 Aug 2018 15:12:32 +0000 (16:12 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 21 Aug 2018 13:59:04 +0000 (14:59 +0100)
commita3562d8c369fed726e7d2ba105f1185878873adb
tree8bbe9ce1fc8172a584e84eb7e27fd47f28e9edf8
parent502f75514737f598d1b2134091b364f425bee703
x86/pt: add HVM check to XEN_DOMCTL_unbind_pt_irq

Its counterpart is HVM only. Add the check to help dead code
elimination to figure out the call to pt_irq_destroy_bind is not
needed when HVM is not enabled.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/domctl.c